gtk4.git
19 years agoTake the scroll arrow into account when drawing the background. (#393166,
Matthias Clasen [Fri, 5 Jan 2007 18:24:00 +0000 (18:24 +0000)]
Take the scroll arrow into account when drawing the background. (#393166,

2007-01-05  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
        account when drawing the background.  (#393166, Benjamin Berg)

svn path=/trunk/; revision=17084

19 years agoFix broken width computation, again.
Behdad Esfahbod [Fri, 5 Jan 2007 18:05:15 +0000 (18:05 +0000)]
Fix broken width computation, again.

2007-01-05  Behdad Esfahbod  <behdad@gnome.org>

        * gtk/gtklabel.c (get_layout_location): Fix broken width computation,
        again.

svn path=/trunk/; revision=17083

19 years agotake into account both scroll arrows when calculating size request in
Carlos Garnacho [Fri, 5 Jan 2007 17:29:49 +0000 (17:29 +0000)]
take into account both scroll arrows when calculating size request in

2007-01-05  Carlos Garnacho  <carlosg@gnome.org>

        * gtk/gtknotebook.c (gtk_notebook_size_request): take into account
        both scroll arrows when calculating size request in GTK_POS_LEFT or
        GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)

svn path=/trunk/; revision=17080

19 years agochain up to the right function (fix taken from maemo-gtk).
Michael Natterer [Fri, 5 Jan 2007 14:07:17 +0000 (14:07 +0000)]
chain up to the right function (fix taken from maemo-gtk).

2007-01-05  Michael Natterer  <mitch@imendio.com>

* gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
the right function (fix taken from maemo-gtk).

svn path=/trunk/; revision=17078

19 years agoupdated hebrew translation
Yair Hershkovitz [Fri, 5 Jan 2007 11:12:12 +0000 (11:12 +0000)]
updated hebrew translation

svn path=/trunk/; revision=17077

19 years agoAvoid overflow when converting coordinates to Pango units. (#332266, Jody
Behdad Esfahbod [Fri, 5 Jan 2007 06:16:32 +0000 (06:16 +0000)]
Avoid overflow when converting coordinates to Pango units. (#332266, Jody

2007-01-05  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkprivate.h:
        * gdk/gdkpango.c (gdk_draw_layout_line_with_colors),
        (gdk_draw_layout_with_colors):
        * gdk/gdkwindow.c (gdk_window_draw_glyphs_transformed):
        Avoid overflow when converting coordinates to Pango units. (#332266,
        Jody Goldberg)

svn path=/trunk/; revision=17075

19 years agomove set_cursor after realization of the popup window, so clamp node
Matthias Clasen [Fri, 5 Jan 2007 05:41:25 +0000 (05:41 +0000)]
move set_cursor after realization of the popup window, so clamp node

2007-01-04  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcombobox.c (gtk_combo_box_popup): move set_cursor
        after realization of the popup window, so clamp node doesn't fail.
        (#346616, Tommi Komulainen, patch by Kristian Rietveld).

svn path=/trunk/; revision=17073

19 years agoTranslation updated by Leonardo Ferreira Fontenelle
Gustavo Noronha Silva [Thu, 4 Jan 2007 21:28:56 +0000 (21:28 +0000)]
Translation updated by Leonardo Ferreira Fontenelle
bug #357134

svn path=/trunk/; revision=17071

19 years agoFix uninitialized width variable.
Behdad Esfahbod [Thu, 4 Jan 2007 16:24:29 +0000 (16:24 +0000)]
Fix uninitialized width variable.

2007-01-04  Behdad Esfahbod  <behdad@gnome.org>

        * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
        variable.

svn path=/trunk/; revision=17069

19 years agoAnother forgotten file
Matthias Clasen [Thu, 4 Jan 2007 15:07:28 +0000 (15:07 +0000)]
Another forgotten file

svn path=/trunk/; revision=17067

19 years agoForgotten file
Matthias Clasen [Thu, 4 Jan 2007 15:06:17 +0000 (15:06 +0000)]
Forgotten file

svn path=/trunk/; revision=17066

19 years agoCross-compilation fixes. (#392646, Yevgen Muntyan)
Matthias Clasen [Thu, 4 Jan 2007 15:05:07 +0000 (15:05 +0000)]
Cross-compilation fixes. (#392646, Yevgen Muntyan)

2007-01-04  Matthias Clasen  <mclasen@redhat.com>

        * gtk/Makefile.am:
        * gdk-pixbuf/Makefile.am:
        * configure.in:
        * gdk/win32/rc/gdk.rc.in: Cross-compilation fixes.
        (#392646, Yevgen Muntyan)

svn path=/trunk/; revision=17065

19 years agoFix some compiler warnings.
Matthias Clasen [Thu, 4 Jan 2007 14:47:29 +0000 (14:47 +0000)]
Fix some compiler warnings.

2007-01-04  Matthias Clasen  <mclasen@redhat.com>

        * demos/gtk-demo/textscroll.c:
        * gtk/gtkhandlebox.c:
        * gtk/gtkcolorsel.c: Fix some compiler warnings.

svn path=/trunk/; revision=17063

19 years agoFix compiler warnings
Matthias Clasen [Thu, 4 Jan 2007 14:24:37 +0000 (14:24 +0000)]
Fix compiler warnings

svn path=/trunk/; revision=17062

19 years agoFix a compiler warning
Matthias Clasen [Thu, 4 Jan 2007 14:18:14 +0000 (14:18 +0000)]
Fix a compiler warning

svn path=/trunk/; revision=17061

19 years agoRework the beep-on-uninserted-text by calling the input method regardless
Matthias Clasen [Thu, 4 Jan 2007 06:09:13 +0000 (06:09 +0000)]
Rework the beep-on-uninserted-text by calling the input method regardless

2007-01-03  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktextview.c: Rework the beep-on-uninserted-text
        by calling the input method regardless of editability,
        and beeping from the commit/preedit-changed handlers.
        (#390514, Yevgen Muntyan)

svn path=/trunk/; revision=17054

19 years agoFix #332604, reported by Joe Wreschnig, patch by Jan Arne Petersen and
Matthias Clasen [Thu, 4 Jan 2007 05:58:32 +0000 (05:58 +0000)]
Fix #332604, reported by Joe Wreschnig, patch by Jan Arne Petersen and

2007-01-03  Matthias Clasen  <mclasen@redhat.com>

        Fix #332604, reported by Joe Wreschnig, patch
        by Jan Arne Petersen and Behdad Esfahbod.

        * gtk/gtklabel.c (gtk_label_size_allocate): Only
        set the width of the layout when necessary.
        (get_layout_location): Use pango_layout_get_pixel_extents()
        instead of pango_layout_get_width().

svn path=/trunk/; revision=17052

19 years agoFix another leak
Matthias Clasen [Thu, 4 Jan 2007 05:09:08 +0000 (05:09 +0000)]
Fix another leak

svn path=/trunk/; revision=17050

19 years agoFix another leak
Matthias Clasen [Thu, 4 Jan 2007 04:49:31 +0000 (04:49 +0000)]
Fix another leak

svn path=/trunk/; revision=17048

19 years agoExit early if we can't get file info - this happens if the iter points to
Matthias Clasen [Thu, 4 Jan 2007 01:45:19 +0000 (01:45 +0000)]
Exit early if we can't get file info - this happens if the iter points to

2007-01-03  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserdefault.c (update_chooser_entry):
        Exit early if we can't get file info - this happens
        if the iter points to the row where we are editing
        the name for a newly created folder.  (#392191, Michael
        Partridge, patch by Kristian Rietveld)

svn path=/trunk/; revision=17046

19 years agoApply a patch by Chris Wilson to avoid spurious valgrind warnings from
Matthias Clasen [Thu, 4 Jan 2007 01:28:07 +0000 (01:28 +0000)]
Apply a patch by Chris Wilson to avoid spurious valgrind warnings from

2007-01-03  Matthias Clasen  <mclasen@redhat.com>

        * gtk/*.c:
        * gdk/x11/*.c: Apply a patch by Chris Wilson to
        avoid spurious valgrind warnings from XSendEvent()
        calls.  (#392532)

svn path=/trunk/; revision=17044

19 years agoClose the http connection after getting the PPD.
Matthias Clasen [Thu, 4 Jan 2007 00:12:04 +0000 (00:12 +0000)]
Close the http connection after getting the PPD.

2007-01-03  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c: Close
        the http connection after getting the PPD.

svn path=/trunk/; revision=17042

19 years agoFix memory leaks
Matthias Clasen [Wed, 3 Jan 2007 21:23:42 +0000 (21:23 +0000)]
Fix memory leaks

svn path=/trunk/; revision=17039

19 years agoIf the current page is removed, always pick a different one. (#392457,
Matthias Clasen [Wed, 3 Jan 2007 20:40:30 +0000 (20:40 +0000)]
If the current page is removed, always pick a different one. (#392457,

2007-01-03  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkassistant.c (remove_page): If the current page
        is removed, always pick a different one.  (#392457,
        Colin Watson)

svn path=/trunk/; revision=17037

19 years agoCleanups
Matthias Clasen [Wed, 3 Jan 2007 20:34:00 +0000 (20:34 +0000)]
Cleanups

svn path=/trunk/; revision=17036

19 years agoExport SED to make sourcing of libtool work. Tighten up the directfb
Matthias Clasen [Wed, 3 Jan 2007 17:55:33 +0000 (17:55 +0000)]
Export SED to make sourcing of libtool work. Tighten up the directfb

2007-01-03  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Export SED to make sourcing of
        libtool work. Tighten up the directfb pkgconfig check.

svn path=/trunk/; revision=17033

19 years agogtk/gtkstyle.c (option_menu_get_props) Use gtk_border_free when freeing
Michael Natterer [Wed, 3 Jan 2007 17:31:57 +0000 (17:31 +0000)]
gtk/gtkstyle.c (option_menu_get_props) Use gtk_border_free when freeing

2007-01-03  Michael Natterer  <mitch@imendio.com>

* gtk/gtkstyle.c (option_menu_get_props)
* gtk/gtkoptionmenu.c (gtk_option_menu_get_props): Use
gtk_border_free when freeing borders.

svn path=/trunk/; revision=17032

19 years agoWork when the entry is not realized. (#392315, Yevgen Muntyan)
Matthias Clasen [Wed, 3 Jan 2007 16:10:15 +0000 (16:10 +0000)]
Work when the entry is not realized. (#392315, Yevgen Muntyan)

2007-01-03  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkentry.c (get_text_area_size): Work when the
        entry is not realized.  (#392315, Yevgen Muntyan)

        * gtk/gtkentry.c (gtk_entry_queue_draw): Use
        GTK_WIDGET_DRAWABLE() here.  (#392227, Chris Wilson)

        * gtk/gtkentry.c (cursor_blinks): Don't get settings
        unnecessarily.  (#392227)

svn path=/trunk/; revision=17030

19 years agoOnly process updates on the window at hand, not on all windows, to avoid
Matthias Clasen [Wed, 3 Jan 2007 02:43:57 +0000 (02:43 +0000)]
Only process updates on the window at hand, not on all windows, to avoid

2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkwindow.c (gtk_window_move_resize): Only process
        updates on the window at hand, not on all windows, to
        avoid violating resize/redraw ordering constraints.
        (#362406, Owen Taylor)

svn path=/trunk/; revision=17028

19 years agofix docs.
Kristian Rietveld [Tue, 2 Jan 2007 23:36:32 +0000 (23:36 +0000)]
fix docs.

2007-01-03  Kristian Rietveld  <kris@gtk.org>

* gtk/gtkcellrendererprogress.c
(gtk_cell_renderer_progress_class_init): fix docs.

svn path=/trunk/; revision=17027

19 years agoInclude locale.h
Matthias Clasen [Tue, 2 Jan 2007 23:23:32 +0000 (23:23 +0000)]
Include locale.h

svn path=/trunk/; revision=17026

19 years agoCall setlocale().
Matthias Clasen [Tue, 2 Jan 2007 19:52:48 +0000 (19:52 +0000)]
Call setlocale().

2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * gtk/updateiconcache.c (main): Call setlocale().

        * gtk/gtkfilesel.c:
        * gtk/gtkfilesystemunix.c:
        * gtk/gtkfilesystemwin32.c:
        * gtk/gtkfilechoosersettings.c:
        * gtk/updateiconcache.c: Consistently use folder instead of
        directory in translated messages.  (#344584, Javier F. Serrador)

svn path=/trunk/; revision=17024

19 years agoTry to fix #315732, reported by Luke Hutchinson:
Matthias Clasen [Tue, 2 Jan 2007 19:07:03 +0000 (19:07 +0000)]
Try to fix #315732, reported by Luke Hutchinson:

2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        Try to fix #315732, reported by Luke Hutchinson:

        * gdk/x11/xsettings-client.[hc]:
        * gdk/x11/gdkdevents-x11.c: Don't assume that ref'ing a GdkWindow
        will guarantee that it can be looked up in the xid hash later.
        Also, use the nesting server grab function during the xsettings
        client initialization. Finally, make xsettings client not
        eat DestroyNotifys so that GDK can do its regular cleanup.

svn path=/trunk/; revision=17022

19 years agobeep when a keybinding didn't change adjustment->value.
Michael Natterer [Tue, 2 Jan 2007 16:40:44 +0000 (16:40 +0000)]
beep when a keybinding didn't change adjustment->value.

2007-01-02  Michael Natterer  <mitch@imendio.com>

* gtk/gtkrange.c (gtk_range_scroll) (gtk_range_move_slider): beep
when a keybinding didn't change adjustment->value.

svn path=/trunk/; revision=17021

19 years agoTry harder not to beep on events which are not meant to insert stuff in
Matthias Clasen [Tue, 2 Jan 2007 15:49:31 +0000 (15:49 +0000)]
Try harder not to beep on events which are not meant to insert stuff in

2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktextbuffer.c (gtk_text_view_key_press_event):
        Try harder not to beep on events which are not meant to
        insert stuff in the buffer.  (#390514, Yevgen Muntyan)

svn path=/trunk/; revision=17020

19 years agoDocumentation additions
Matthias Clasen [Tue, 2 Jan 2007 14:53:07 +0000 (14:53 +0000)]
Documentation additions

svn path=/trunk/; revision=17018

19 years agoSmall documentation fixes.
Matthias Clasen [Tue, 2 Jan 2007 14:45:15 +0000 (14:45 +0000)]
Small documentation fixes.

2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktextbufferrichtext.c: Small documentation fixes.

svn path=/trunk/; revision=17017

19 years agoCenter in the frame. (#304482, Rob Staudinger, patch by Richard
Matthias Clasen [Tue, 2 Jan 2007 14:23:33 +0000 (14:23 +0000)]
Center in the frame. (#304482, Rob Staudinger, patch by Richard

2007-01-02  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkentry.c (get_text_area_size): Center in the frame.
        (#304482, Rob Staudinger, patch by  Richard Stellingwerff)

svn path=/trunk/; revision=17015

19 years agoFix for leak when window destroyed
Michael David Emmel [Tue, 2 Jan 2007 09:05:54 +0000 (09:05 +0000)]
Fix for leak when window destroyed

svn path=/trunk/; revision=17014

19 years agoOnly handle key bindings for scrolling if the scrollbars are visible.
Matthias Clasen [Tue, 2 Jan 2007 07:07:09 +0000 (07:07 +0000)]
Only handle key bindings for scrolling if the scrollbars are visible.

2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkscrolledwindow.h:
        * gtk/gtkscrolledwindow.c: Only handle key bindings
        for scrolling if the scrollbars are visible.
        (#340135, Christian Persch)

svn path=/trunk/; revision=17012

19 years agoFix a segfault in horizontal scrolling
Matthias Clasen [Tue, 2 Jan 2007 07:05:53 +0000 (07:05 +0000)]
Fix a segfault in horizontal scrolling

svn path=/trunk/; revision=17011

19 years agoOnly handle key bindings for tab reordering if the tabs are shown and
Matthias Clasen [Tue, 2 Jan 2007 06:22:37 +0000 (06:22 +0000)]
Only handle key bindings for tab reordering if the tabs are shown and

2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.h:
        * gtk/gtknotebook.c: Only handle key bindings for
        tab reordering if the tabs are shown and reorderable.
        (#390468, Yevgen Muntyan)

        * gtk/gtkmarshalers.list: Add required marshaler

svn path=/trunk/; revision=17008

19 years agoMention in the docs that the return value is NULL-terminated. (#383373,
Matthias Clasen [Tue, 2 Jan 2007 04:37:31 +0000 (04:37 +0000)]
Mention in the docs that the return value is NULL-terminated. (#383373,

2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcontainer.c (gtk_container_class_list_child_properties):
        Mention in the docs that the return value is
        NULL-terminated.  (#383373, Christian Neumair)

svn path=/trunk/; revision=17007

19 years agoWaste less time with non-directories. (#391725, Chris Wilson)
Matthias Clasen [Tue, 2 Jan 2007 04:19:28 +0000 (04:19 +0000)]
Waste less time with non-directories. (#391725, Chris Wilson)

2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkicontheme.c (load_themes): Waste less time
        with non-directories.  (#391725, Chris Wilson)

svn path=/trunk/; revision=17005

19 years agoImplement activity mode for GtkCellRendererProgress. (#377851, Brad
Matthias Clasen [Tue, 2 Jan 2007 04:11:15 +0000 (04:11 +0000)]
Implement activity mode for GtkCellRendererProgress. (#377851, Brad

2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcellrendererprogress.c: Implement activity mode
        for GtkCellRendererProgress.  (#377851, Brad Taylor)

svn path=/trunk/; revision=17004

19 years agoFix some IPP compliance issues. (#391523, Albrecht Dress)
Matthias Clasen [Mon, 1 Jan 2007 23:47:45 +0000 (23:47 +0000)]
Fix some IPP compliance issues. (#391523, Albrecht Dress)

2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        Fix some IPP compliance issues.  (#391523, Albrecht Dress)

        * modules/printbackends/cups/gtkcupsutils.c
        (gtk_cups_request_encode_option): Use IPP_TAG_JOB, not
        IPP_TAG_OPERATION.
        * modules/printbackends/cups/gtkprintbackendcups.c
        (gtk_print_backend_cups_print_stream): Don't add the
        requesting-user-name attribute a second time.

svn path=/trunk/; revision=17002

19 years agoFix en/em dash confusion. (#378462)
Matthias Clasen [Mon, 1 Jan 2007 05:40:05 +0000 (05:40 +0000)]
Fix en/em dash confusion. (#378462)

2007-01-01  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkimcontextsimple.c: Fix en/em dash confusion.  (#378462)

svn path=/trunk/; revision=17000

19 years agoUse the right object when disconnecting from the GtkRecentManager::changed
Emmanuele Bassi [Sun, 31 Dec 2006 16:54:56 +0000 (16:54 +0000)]
Use the right object when disconnecting from the GtkRecentManager::changed

2006-12-31  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentchoosermenu.c (set_recent_manager): Use the
right object when disconnecting from the GtkRecentManager::changed
signal; save us a few indirections using a variable.

svn path=/trunk/; revision=16999

19 years agoMove the signal and idle disconnections into the dispose function, as well
Emmanuele Bassi [Sun, 31 Dec 2006 16:35:00 +0000 (16:35 +0000)]
Move the signal and idle disconnections into the dispose function, as well

2006-12-31  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentchoosermenu.c: Move the signal and idle
disconnections into the dispose function, as well as the
object unrefs; reset every handler id and the
pointers. (suggested by Paolo Borelli, #390873)

svn path=/trunk/; revision=16997

19 years agoInclude windows.h (#391229, Kazuki Iwamoto)
Matthias Clasen [Sun, 31 Dec 2006 15:49:44 +0000 (15:49 +0000)]
Include windows.h (#391229, Kazuki Iwamoto)

2006-12-31  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintoperation-win32.c: Include windows.h (#391229,
        Kazuki Iwamoto)

svn path=/trunk/; revision=16995

19 years agoRemove the scroll timeout. (#390872, Yevgen Muntyan)
Matthias Clasen [Sun, 31 Dec 2006 06:00:08 +0000 (06:00 +0000)]
Remove the scroll timeout. (#390872, Yevgen Muntyan)

2006-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktextview.c (gtk_text_view_destroy): Remove the
        scroll timeout.  (#390872, Yevgen Muntyan)

svn path=/trunk/; revision=16993

19 years agoMove a few settings to gtksettings.c to make sure they show up in the
Matthias Clasen [Sun, 31 Dec 2006 05:54:46 +0000 (05:54 +0000)]
Move a few settings to gtksettings.c to make sure they show up in the

2006-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintoperation-unix.c:
        * gtk/gtkprintbackend.c:
        * gtk/gtkfilechooserdefault.c:
        * gtk/gtksettings.c: Move a few settings to gtksettings.c
        to make sure they show up in the docs.  (#365364, Christian
        Persch)

svn path=/trunk/; revision=16992

19 years agoRedraw assistant on reallocate to avoid rendering glitches. (#343956,
Matthias Clasen [Sun, 31 Dec 2006 05:15:37 +0000 (05:15 +0000)]
Redraw assistant on reallocate to avoid rendering glitches. (#343956,

2006-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkassistant.c: Redraw assistant on reallocate
        to avoid rendering glitches.  (#343956, Christian
        Persch, Carlos Garnacho)

svn path=/trunk/; revision=16990

19 years agoTypo fix. (#352121, Clytie Siddall)
Matthias Clasen [Sun, 31 Dec 2006 05:09:01 +0000 (05:09 +0000)]
Typo fix. (#352121, Clytie Siddall)

2006-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkrange.c: Typo fix.  (#352121, Clytie Siddall)

svn path=/trunk/; revision=16989

19 years agoImprove the docs of the "label" property. (#341730, Kristof Vansant)
Matthias Clasen [Sun, 31 Dec 2006 04:14:28 +0000 (04:14 +0000)]
Improve the docs of the "label" property. (#341730, Kristof Vansant)

2006-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkaction.c: Improve the docs of the "label"
        property.  (#341730, Kristof Vansant)

svn path=/trunk/; revision=16988

19 years agoCorrectly handle min size. (#320465, Philipp Langdale)
Matthias Clasen [Sun, 31 Dec 2006 00:57:27 +0000 (00:57 +0000)]
Correctly handle min size. (#320465, Philipp Langdale)

2006-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkwindow.c (gtk_window_compute_configure_request_size):
        Correctly handle min size. (#320465, Philipp Langdale)

svn path=/trunk/; revision=16986

19 years agoImplement editing of flags.
Matthias Clasen [Sun, 31 Dec 2006 00:49:44 +0000 (00:49 +0000)]
Implement editing of flags.

2006-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/prop-editor.c: Implement editing of flags.

svn path=/trunk/; revision=16985

19 years agoDon't install cursors on insensitive widgets. (#358864, Jan Schampera)
Matthias Clasen [Sun, 31 Dec 2006 00:36:03 +0000 (00:36 +0000)]
Don't install cursors on insensitive widgets. (#358864, Jan Schampera)

2006-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkentry.c:
        * gtk/gtklabel.c:
        * gtk/gtkpaned.c:
        * gtk/gtkstatusbar.c:
        * gtk/gtktextview.c: Don't install cursors on insensitive
        widgets.  (#358864, Jan Schampera)

svn path=/trunk/; revision=16983

19 years agofix doc formatting errors
Matthias Clasen [Fri, 29 Dec 2006 20:30:39 +0000 (20:30 +0000)]
fix doc formatting errors

19 years agoClarify docs. (#353423, Christian Persch)
Matthias Clasen [Fri, 29 Dec 2006 19:57:03 +0000 (19:57 +0000)]
Clarify docs. (#353423, Christian Persch)

2006-12-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkstyle.c (gtk_style_attach): Clarify docs.  (#353423,
        Christian Persch)

19 years agoDon't die in an assertion if focus went missing. Just warn, clean up and
Matthias Clasen [Fri, 29 Dec 2006 19:26:34 +0000 (19:26 +0000)]
Don't die in an assertion if focus went missing. Just warn, clean up and

2006-12-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkentry.c (blink_cb):
        * gtk/gtktextview.c (blink_cb): Don't die in an assertion
        if focus went missing. Just warn, clean up and continue.
        (#374378)

19 years agoreturn if the widget that originally received the event is a notebook
Carlos Garnacho [Fri, 29 Dec 2006 19:11:32 +0000 (19:11 +0000)]
return if the widget that originally received the event is a notebook

2006-12-29  Carlos Garnacho  <carlosg@gnome.org>

        * gtk/gtknotebook.c (gtk_notebook_scroll): return if the widget that
        originally received the event is a notebook page. (#315440, reported
        by Mateusz Stefek)

19 years agoFix a typo
Matthias Clasen [Fri, 29 Dec 2006 18:43:40 +0000 (18:43 +0000)]
Fix a typo

19 years agoDisplay children of containers and cell renderers of cell layouts.
Matthias Clasen [Fri, 29 Dec 2006 14:54:18 +0000 (14:54 +0000)]
Display children of containers and cell renderers of cell layouts.

2006-12-29  Matthias Clasen  <mclasen@redhat.com>

        * tests/prop-editor.c: Display children of containers
        and cell renderers of cell layouts.

19 years agoNew function to get the cell renderers of a cell layout.
Matthias Clasen [Fri, 29 Dec 2006 07:53:01 +0000 (07:53 +0000)]
New function to get the cell renderers of a cell layout.

2006-12-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtk.symbols:
        * gtk/gtkcelllayout.[hc] (gtk_cell_layout_get_cells):
        New function to get the cell renderers of a cell layout.

        * gtk/gtktreeviewcolumn.c:
        * gtk/gtkcellview.c:
        * gtk/gtkiconview.c: Implement get_cells.

19 years agoUse word wrapping by default, and center multiline labels. (#318763, Ross
Matthias Clasen [Fri, 29 Dec 2006 04:39:51 +0000 (04:39 +0000)]
Use word wrapping by default, and center multiline labels. (#318763, Ross

2006-12-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkiconview.c: Use word wrapping by default, and
        center multiline labels.  (#318763, Ross Burton)

        * gtk/gtkcellrenderertext.c (get_layout): Remove a special
        case for single-line layouts.

19 years agoFix a typo in the docs. (#390423, David Lodge)
Matthias Clasen [Thu, 28 Dec 2006 21:47:59 +0000 (21:47 +0000)]
Fix a typo in the docs. (#390423, David Lodge)

2006-12-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkarrow.c: Fix a typo in the docs.  (#390423,
        David Lodge)

19 years agoOnly use the results of find_menu/toolbar_position() if they succeed. May
Matthias Clasen [Thu, 28 Dec 2006 21:23:17 +0000 (21:23 +0000)]
Only use the results of find_menu/toolbar_position() if they succeed. May

2006-12-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkuimanager.c (update_node): Only use the results
        of find_menu/toolbar_position() if they succeed. May fix
        bug #388041.

19 years agoFix some formatting errors in docs.
Matthias Clasen [Thu, 28 Dec 2006 21:22:23 +0000 (21:22 +0000)]
Fix some formatting errors in docs.

2006-12-28  Matthias Clasen  <mclasen@redhat.com>

        * gdk/gdk.c: Fix some formatting errors in docs.

19 years agoUpdated English (British) translation
David Lodge [Thu, 28 Dec 2006 18:10:32 +0000 (18:10 +0000)]
Updated English (British) translation

2006-12-28  David Lodge <dave@cirt.net>

* en_GB.po: Updated English (British) translation

19 years agoDon't leak HICONs on Win32. (#364868, Hiroyuki Yamamoto)
Tor Lillqvist [Thu, 28 Dec 2006 16:50:35 +0000 (16:50 +0000)]
Don't leak HICONs on Win32. (#364868, Hiroyuki Yamamoto)

2006-12-28  Tor Lillqvist  <tml@novell.com>

* gtk/gtkstatusicon.c (gtk_status_icon_finalize)
(gtk_status_icon_update_image): Don't leak HICONs on
Win32. (#364868, Hiroyuki Yamamoto)

19 years agoMake GtkNotebook able to drop detached tabs anywhere. Bug #360225.
Carlos Garnacho [Thu, 28 Dec 2006 16:38:49 +0000 (16:38 +0000)]
Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.

2006-12-28  Carlos Garnacho  <carlosg@gnome.org>

        Make GtkNotebook able to drop detached tabs anywhere. Bug #360225.

        * gtk/gtkwidget.c (gtk_widget_class_init): add "drag-failed" signal.
        * gtk/gtkmarshalers.list: add new marshaler definition.
        * gtk/gtkenums.h: add GtkDragResult enum.

        * gtk/gtkdnd.c (gtk_drag_drop_finished): emit "drag-failed" if DND
        operation wasn't successful.
        (_gtk_drag_source_handle_event) (gtk_drag_drop)
        (gtk_drag_selection_get) (gtk_drag_cancel) (gtk_drag_key_cb)
        (gtk_drag_grab_broken_event_cb) (gtk_drag_grab_notify_cb)
        (gtk_drag_button_release_cb) (gtk_drag_abort_timeout): tell
        gtk_drag_drop_finished() the operation result.

        * gtk/gtknotebook.c (gtk_notebook_drag_failed): new function.
        (gtk_notebook_drag_data_get): do not call window creation hook here.
        (gtk_notebook_init): do not set "application/x-rootwindow-drop"
        target, instead connect to "drag-failed".
        (gtk_notebook_draw_focus): fix potential crasher if cur_page is NULL.

19 years agoFactored out the event loop integration into gdkeventloop-quartz.c.
Mikael Hallendal [Thu, 28 Dec 2006 09:04:48 +0000 (09:04 +0000)]
Factored out the event loop integration into gdkeventloop-quartz.c.

2006-12-28  Mikael Hallendal  <micke@imendio.com>

* gdk/quartz/gdkevents-quartz.c: Factored out the event loop
integration into gdkeventloop-quartz.c.

* gdk/quartz/Makefile.am: Added gdkeventloop-quartz.c

* gdk/quartz/gdkeventloop-quartz.c: New file containing the event loop
integration.

19 years agobroken pre-commit script
Matthias Clasen [Thu, 28 Dec 2006 04:22:46 +0000 (04:22 +0000)]
broken pre-commit script

19 years agoRemove redundant declarations (#390097, Christian Persch)
Matthias Clasen [Thu, 28 Dec 2006 04:19:49 +0000 (04:19 +0000)]
Remove redundant declarations (#390097, Christian Persch)

2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * gdk/gdk.h: Remove redundant declarations (#390097,
        Christian Persch)

19 years agoSupport inverting arrows via XSetting. (#377979, Yevgen Muntyan).
Kristian Rietveld [Wed, 27 Dec 2006 19:52:25 +0000 (19:52 +0000)]
Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).

2006-12-27  Kristian Rietveld  <kris@gtk.org>

Support inverting arrows via XSetting. (#377979, Yevgen Muntyan).

* gtk/gtksettings.c (gtk_settings_class_init): add new setting
gtk-alternative-sort-arrows.

* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): add
new setting.

* modules/engines/ms-windows/Theme/gtk-2.0/gtkrc: set new
gtk-alternative-sort-arrows setting to true.

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_update_button):
invert direction if gtk-alternative-sort-arrows is TRUE.

19 years agoAdd gtk_status_icon_get_screen and gtk_status_icon_set_screen.
Tor Lillqvist [Wed, 27 Dec 2006 18:20:10 +0000 (18:20 +0000)]
Add gtk_status_icon_get_screen and gtk_status_icon_set_screen.

2006-12-27  Tor Lillqvist  <tml@novell.com>

* gtk/gtk.symbols: Add gtk_status_icon_get_screen and
gtk_status_icon_set_screen.

* gtk/gtkstatusicon.c: Implement gtk_status_icon_position_menu()
on Windows. Keep track of where the last button click on the
taskbar icon took place, and return that. Obviously not correct if
no button has ever been clicked on the icon, or if the geometry of
the taskbar has changed since. But for most use cases where a menu
is going to be displayed as a direct result of a button click on
the status icon, works fine. (#377349)

Implement getting the orientation property on Windows.

(gtk_status_icon_embedded_changed)
(gtk_status_icon_orientation_changed): Ifdefify these functions
that are used only on X11.

19 years agoFix typo. (#390035, Kazuki Iwamoto)
Tor Lillqvist [Wed, 27 Dec 2006 15:40:37 +0000 (15:40 +0000)]
Fix typo. (#390035, Kazuki Iwamoto)

2006-12-27  Tor Lillqvist  <tml@novell.com>

* gtk/gtkfilesystemwin32.c (execute_callbacks): Fix
typo. (#390035, Kazuki Iwamoto)

19 years agoAccept NULL.
Matthias Clasen [Wed, 27 Dec 2006 07:17:53 +0000 (07:17 +0000)]
Accept NULL.

2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcellview.c (gtk_cell_view_set_model): Accept NULL.

        * gtk/gtkcombobox.c (gtk_combo_box_set_model):
        (gtk_combo_box_unset_model): Handle repeated unsetting
        of models without warnings.  (#367529, Robert Ancell)

19 years agoforgotten file
Matthias Clasen [Wed, 27 Dec 2006 06:50:31 +0000 (06:50 +0000)]
forgotten file

19 years agoUse getters for http fields where available. (#364866, Björn Lindqvist)
Matthias Clasen [Wed, 27 Dec 2006 06:49:49 +0000 (06:49 +0000)]
Use getters for http fields where available. (#364866, Björn Lindqvist)

2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c: Use
        getters for http fields where available.  (#364866,
        Björn Lindqvist)

19 years agoAdd a g_return_if_fail. (#362614, Xan Lopez)
Matthias Clasen [Wed, 27 Dec 2006 06:45:19 +0000 (06:45 +0000)]
Add a g_return_if_fail. (#362614, Xan Lopez)

2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkwidget.c (gtk_widget_show): Add a g_return_if_fail.
        (#362614, Xan Lopez)

19 years agoIf a required action is missing, don't recurse over the children.
Matthias Clasen [Wed, 27 Dec 2006 06:37:18 +0000 (06:37 +0000)]
If a required action is missing, don't recurse over the children.

2006-12-27  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkuimanager.c (update_node): If a required action
        is missing, don't recurse over the children.  (#349119,
        Chris Moller)

19 years agoFix a few problems with nested menus in comboboxes (#386694, Yevgen
Matthias Clasen [Wed, 27 Dec 2006 06:12:53 +0000 (06:12 +0000)]
Fix a few problems with nested menus in comboboxes (#386694, Yevgen

2006-12-17  Matthias Clasen  <mclasen@redhat.com>

        Fix a few problems with nested menus in comboboxes
        (#386694, Yevgen Muntyan)

        * gtk/gtkcombobox.c (gtk_combo_box_menu_fill_level): Always
        connect the activate callback.
        (gtk_combo_box_menu_item_activate): Do nothing if called on
        an item with a submenu.
        (gtk_combo_box_menu_row_deleted): Remove a submenu when it
        is empty.

19 years agoAdd a file-set signal to the filechooser button. Bug 353196.
Mariano Suárez-Alvarez [Tue, 26 Dec 2006 22:20:06 +0000 (22:20 +0000)]
Add a file-set signal to the filechooser button. Bug 353196.

2006-12-26  Mariano Suárez-Alvarez  <mariano@gnome.org>

* gtk/gtkfilechooserbuuton.[hc]: Add a file-set signal to the
filechooser button. Bug 353196.

19 years agofix typo causing the search dialog timeout never to be refreshed.
Kristian Rietveld [Tue, 26 Dec 2006 18:17:36 +0000 (18:17 +0000)]
fix typo causing the search dialog timeout never to be refreshed.

2006-12-26  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (gtk_tree_view_search_init): fix typo causing
the search dialog timeout never to be refreshed. (#389581,
Andrzej Szombierski).

19 years agoLots of scrolling fixes. Made scrolling work properly in not fully
Kristian Rietveld [Tue, 26 Dec 2006 16:13:02 +0000 (16:13 +0000)]
Lots of scrolling fixes. Made scrolling work properly in not fully

2006-12-26  Kristian Rietveld  <kris@gtk.org>

Lots of scrolling fixes.  Made scrolling work properly in not fully
validated tree views; fixed a bunch of corner cases.

* gtk/gtktreeview.c (validate_visible_area): if a row's dy is past
upper - page_size, we know it is located at the end so the test for
dy + height has been dropped.
In the same case if area_below < 0, we know this is the last node
in the tree view so area_above is page_size - height of this row.
(validate_visible_area): got rid of subtracting new_height -
old_height from area_{below,above}, it didn't make any sense at
all and the full height of the row should be subtracted instead.
(validate_visible_area): when scrolling to a given path, set the
top row directly together with the dy offset, then sync that top_row
to the dy.
(gtk_tree_view_set_top_row): new function to directly set a top_row.
(gtk_tree_view_dy_to_top_row): refactored to use
gtk_tree_view_set_top_row().
(gtk_tree_view_top_row_to_dy): make sure dy >= 0 when done.
(gtk_tree_view_adjustment_changed): only update our dy and
top_row if the adjustment's dy actually changed.

19 years agoReturn the correct value from gtk_notebook_insert_page if the page-added
Christian Persch [Tue, 26 Dec 2006 14:49:34 +0000 (14:49 +0000)]
Return the correct value from gtk_notebook_insert_page if the page-added

2006-12-26  Christian Persch  <chpe@cvs.gnome.org>

* gtk/gtknotebook.c: (gtk_notebook_real_insert_page):
Return the correct value from gtk_notebook_insert_page if the
page-added handler reorders the tabs. Bug #345094.

19 years agoFix small regressions in GtkNotebook tab detaching. Bug #378852.
Carlos Garnacho [Tue, 26 Dec 2006 11:02:15 +0000 (11:02 +0000)]
Fix small regressions in GtkNotebook tab detaching. Bug #378852.

2006-12-26  Carlos Garnacho  <carlosg@gnome.org>

        Fix small regressions in GtkNotebook tab detaching. Bug #378852.

        * gtk/gtknotebook.c (gtk_notebook_do_arrow): grab focus to allow tabs
        scrolling when hovering with a detached tab.
        (gtk_notebook_stop_reorder): Do not deparent the wrong tab if the
        focus tab has changed during a tab DND operation.
        (gtk_notebook_drag_end): ensure that the dropped tab gets focused.
        (gtk_notebook_paint): do not take cur_page as a reference to paint the
        box if it's detached.
        (gtk_notebook_calculate_tabs_allocation): focus_tab may be different
        to the detached tab if we hover the arrows during a tabs detaching
        operation, do not allocate it unconditionally in 0,0.

19 years agoExpose improvements for GtkNotebook. Bug #383435
Carlos Garnacho [Tue, 26 Dec 2006 10:31:36 +0000 (10:31 +0000)]
Expose improvements for GtkNotebook. Bug #383435

2006-12-26  Carlos Garnacho  <carlosg@gnome.org>

        Expose improvements for GtkNotebook. Bug #383435

        * gtk/gtknotebook.c (gtk_notebook_expose): propagate the event to tab
        labels.
        (gtk_notebook_draw_focus): do not repaint the whole focused tab again.
        (gtk_notebook_draw_tab): do not send handmade expose events to tab
        labels.

19 years agoReturn FALSE. (#389623, Carlos Garnacho Parro)
Matthias Clasen [Tue, 26 Dec 2006 06:57:50 +0000 (06:57 +0000)]
Return FALSE. (#389623, Carlos Garnacho Parro)

2006-12-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilesystemunix.c (execute_callbacks): Return
        FALSE.  (#389623, Carlos Garnacho Parro)

19 years agoAvoid spurious redraws.
Matthias Clasen [Tue, 26 Dec 2006 06:53:57 +0000 (06:53 +0000)]
Avoid spurious redraws.

2006-12-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkrange.c (stop_scrolling): Avoid spurious
        redraws.

19 years agoNotify the "embedded" property also on normal construction and when
Christian Persch [Mon, 25 Dec 2006 12:29:35 +0000 (12:29 +0000)]
Notify the "embedded" property also on normal construction and when

2006-12-25  Christian Persch  <chpe@cvs.gnome.org>

* gtk/gtkplug.c: (gtk_plug_construct_for_display),
(gtk_plug_unrealize): Notify the "embedded" property also on
normal construction and when destroying the socket window.
Bug #388738.

19 years agoSet the HIG spacings directly instead of using style-set handlers. Fix the
Christian Persch [Mon, 25 Dec 2006 12:21:16 +0000 (12:21 +0000)]
Set the HIG spacings directly instead of using style-set handlers. Fix the

2006-12-25  Christian Persch  <chpe@cvs.gnome.org>

* gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init),
(gtk_about_dialog_init), (display_credits_dialog),
(display_license_dialog):
* gtk/gtkfilechooserdialog.c: (gtk_file_chooser_dialog_class_init),
(gtk_file_chooser_dialog_init),
(gtk_file_chooser_dialog_constructor),
(gtk_file_chooser_dialog_unmap):
* gtk/gtkrecentchooserdefault.c:
(_gtk_recent_chooser_default_init):
* gtk/gtkrecentchooserdialog.c:
(gtk_recent_chooser_dialog_class_init),
(gtk_recent_chooser_dialog_init),
(gtk_recent_chooser_dialog_constructor),
(gtk_recent_chooser_dialog_unmap): Set the HIG spacings directly
instead of using style-set handlers. Fix the filechooser's spacing
between content and action area to 12px. Bug #372447.

19 years agoDon't assume statusbar->label is the statusbar's frame's child when
Christian Persch [Mon, 25 Dec 2006 12:12:10 +0000 (12:12 +0000)]
Don't assume statusbar->label is the statusbar's frame's child when

2006-12-25  Christian Persch  <chpe@cvs.gnome.org>

* gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate):
Don't assume statusbar->label is the statusbar's frame's child when
shrinking the size allocation when the grip is shown. Bug #372452.

19 years agoFix mem leaks. Bug #389194.
Christian Persch [Mon, 25 Dec 2006 12:03:44 +0000 (12:03 +0000)]
Fix mem leaks. Bug #389194.

2006-12-25  Christian Persch  <chpe@cvs.gnome.org>

* gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
(add_custom_paper): Fix mem leaks. Bug #389194.

19 years agoFix translation bug #389296
Guntupalli Karunakar [Mon, 25 Dec 2006 05:05:57 +0000 (05:05 +0000)]
Fix translation bug #389296

19 years agoRemove debug output.
Matthias Clasen [Mon, 25 Dec 2006 03:57:39 +0000 (03:57 +0000)]
Remove debug output.

2006-12-24  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktextutil.c: Remove debug output.

        * gtk/gtktextview.c: Improve the DND scrolling
        behaviour.  (#92387, Carlos Garnacho Parro)

19 years agoImprove translators comments. (#389298, Christian Persch)
Matthias Clasen [Sun, 24 Dec 2006 22:12:13 +0000 (22:12 +0000)]
Improve translators comments. (#389298, Christian Persch)

2006-12-24  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkaccellabel.c: Improve translators comments.
        (#389298, Christian Persch)

19 years agoRemove stale cvs conflict marker.
Kristian Rietveld [Sun, 24 Dec 2006 19:32:38 +0000 (19:32 +0000)]
Remove stale cvs conflict marker.